package com.ruoyi.my.domain;

import com.ruoyi.question_details.domain.QuestionDetails;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 试题对象 question
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
@Data
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 题目名称 */
    @Excel(name = "题目名称")
    private String name;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 更新日期 */
    @Excel(name = "更新日期")
    private String updateUser;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 分值 */
    @Excel(name = "分值")
    private Long score;

    private Long userId;

    private String key11;

    private List<QuestionDetails> questionDetails;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("score", getScore())
                .append("userId", getUserId())
                .append("key11", getKey11())
            .toString();
    }
}
